inherited frmAutoMasterDetail: TfrmAutoMasterDetail
  Caption = #33258#21160#37197#32622#20027#20174#27169#26495
  ClientWidth = 1001
  ExplicitWidth = 1009
  PixelsPerInch = 96
  TextHeight = 16
  inherited ToolBar1: TToolBar
    Width = 995
    ExplicitWidth = 995
  end
  object PageControl1: TPageControl [1]
    Left = 0
    Top = 53
    Width = 1001
    Height = 577
    ActivePage = TabSheet1
    Align = alClient
    TabOrder = 1
    object TabSheet1: TTabSheet
      Caption = #36164#26009#21015#34920
      object Panel1: TPanel
        Left = 0
        Top = 0
        Width = 993
        Height = 27
        Align = alTop
        TabOrder = 0
        DesignSize = (
          993
          27)
        object pnlSearchTool: TPanel
          Left = 708
          Top = 1
          Width = 275
          Height = 22
          Anchors = [akTop, akRight]
          BevelEdges = [beTop, beRight]
          BevelOuter = bvNone
          Ctl3D = False
          ParentCtl3D = False
          TabOrder = 0
          object sbFastFind: TSpeedButton
            Left = 235
            Top = 1
            Width = 39
            Height = 18
            Caption = #26597#25214
            Flat = True
          end
          object EdtLocate: TEdit
            Left = 112
            Top = 0
            Width = 121
            Height = 22
            Hint = #23450#20301#21015#34920#20869#30340#24403#21069#21015
            Align = alLeft
            Ctl3D = True
            ParentCtl3D = False
            TabOrder = 0
            ExplicitHeight = 24
          end
          object CmbFindField: TComboBox
            Left = 0
            Top = 0
            Width = 112
            Height = 24
            Align = alLeft
            Style = csDropDownList
            Color = clBtnFace
            TabOrder = 1
          end
        end
      end
      object cxGridMaster: TcxGrid
        Left = 0
        Top = 27
        Width = 993
        Height = 519
        Align = alClient
        TabOrder = 1
        object cxGridMasterDBTableView1: TcxGridDBTableView
          OnDblClick = cxGridMasterDBTableView1DblClick
          Navigator.Buttons.CustomButtons = <>
          OnCustomDrawCell = cxGridMasterDBTableView1CustomDrawCell
          DataController.DataSource = dsMaster
          DataController.Summary.DefaultGroupSummaryItems = <>
          DataController.Summary.FooterSummaryItems = <>
          DataController.Summary.SummaryGroups = <>
          OptionsData.CancelOnExit = False
          OptionsData.DeletingConfirmation = False
          OptionsSelection.CellSelect = False
          OptionsView.ShowEditButtons = gsebAlways
          OptionsView.Indicator = True
          OptionsView.IndicatorWidth = 20
          OnCustomDrawIndicatorCell = cxGridMasterDBTableView1CustomDrawIndicatorCell
        end
        object cxGridMasterLevel1: TcxGridLevel
          GridView = cxGridMasterDBTableView1
        end
      end
    end
    object TabSheet2: TTabSheet
      Caption = #36164#26009#26126#32454
      ImageIndex = 1
      ExplicitLeft = 0
      ExplicitTop = 0
      ExplicitWidth = 0
      ExplicitHeight = 0
      object cxGridDetail: TcxGrid
        Left = 0
        Top = 194
        Width = 993
        Height = 352
        Align = alClient
        PopupMenu = PMDetailGrid
        TabOrder = 0
        object cxGridDetailDBTableView1: TcxGridDBTableView
          Navigator.Buttons.CustomButtons = <>
          Navigator.Buttons.First.Visible = False
          Navigator.Buttons.PriorPage.Visible = False
          Navigator.Buttons.Prior.Visible = False
          Navigator.Buttons.Next.Visible = False
          Navigator.Buttons.NextPage.Visible = False
          Navigator.Buttons.Last.Visible = False
          Navigator.Buttons.Append.Visible = False
          Navigator.Buttons.SaveBookmark.Visible = False
          Navigator.Buttons.GotoBookmark.Visible = False
          Navigator.Buttons.Filter.Visible = False
          Navigator.Visible = True
          OnCustomDrawCell = cxGridDetailDBTableView1CustomDrawCell
          DataController.DataSource = dsDetail
          DataController.Summary.DefaultGroupSummaryItems = <>
          DataController.Summary.FooterSummaryItems = <>
          DataController.Summary.SummaryGroups = <>
          OptionsBehavior.AlwaysShowEditor = True
          OptionsBehavior.FocusCellOnTab = True
          OptionsBehavior.FocusFirstCellOnNewRecord = True
          OptionsBehavior.GoToNextCellOnEnter = True
          OptionsBehavior.FocusCellOnCycle = True
          OptionsData.Appending = True
          OptionsData.CancelOnExit = False
          OptionsData.Deleting = False
          OptionsData.DeletingConfirmation = False
          OptionsView.NavigatorOffset = 60
          OptionsView.ShowEditButtons = gsebAlways
          OptionsView.GroupByBox = False
          OptionsView.Indicator = True
          OptionsView.IndicatorWidth = 20
          OnCustomDrawIndicatorCell = cxGridDetailDBTableView1CustomDrawIndicatorCell
          object cxGridDetailDBTableViewColumn: TcxGridDBColumn
            PropertiesClassName = 'TcxButtonEditProperties'
            Properties.Buttons = <
              item
                Default = True
                Kind = bkEllipsis
              end>
            Properties.OnButtonClick = cxGridDetailDBTableView1Column1PropertiesButtonClick
            Options.ShowEditButtons = isebAlways
          end
        end
        object cxGridDetailLevel1: TcxGridLevel
          GridView = cxGridDetailDBTableView1
        end
      end
      object FlowPanel1: TFlowPanel
        Left = 0
        Top = 0
        Width = 993
        Height = 194
        Align = alTop
        TabOrder = 1
        OnResize = FlowPanel1Resize
      end
    end
  end
  inherited ActionList: TActionList
    object ActDIns: TAction [28]
      Caption = #25554#20837#19968#26465#35760#24405
      OnExecute = ActDInsExecute
    end
    object ActDApp: TAction [29]
      Caption = #36861#21152#19968#26465#35760#24405
      OnExecute = ActDAppExecute
    end
    object ActDDel: TAction [30]
      Caption = #21024#38500#19968#26465#35760#24405
      OnExecute = ActDDelExecute
    end
    object ActLotEdit: TAction [31]
      Caption = #25104#25209#20462#25913#26126#32454
      OnExecute = ActLotEditExecute
    end
  end
  inherited frxReport1: TfrxReport
    ScriptText.Strings = ()
  end
  object dsDetail: TDataSource [15]
    AutoEdit = False
    DataSet = FDQryDetail
    Left = 328
    Top = 368
  end
  object frxDBDSDetail: TfrxDBDataset [16]
    UserName = #26126#32454#25968#25454#28304
    CloseDataSource = False
    DataSource = dsDetail
    BCDToCurrency = False
    Left = 624
    Top = 256
  end
  inherited FDQryModuleReport: TFDQuery
    Left = 496
    Top = 272
  end
  object PMDetailGrid: TPopupMenu [18]
    AutoHotkeys = maManual
    OwnerDraw = True
    Left = 248
    Top = 416
    object MenuItem1: TMenuItem
      Action = ActDApp
    end
    object N5: TMenuItem
      Caption = '-'
    end
    object NLotEdit: TMenuItem
      Action = ActDDel
    end
    object N4: TMenuItem
      Caption = '-'
    end
    object MenuItem2: TMenuItem
      Action = ActDIns
    end
  end
  inherited FDQryMaster: TFDQuery
    BeforeDelete = FDQryMasterBeforeDelete
  end
  inherited FDUPSQLMaster: TFDUpdateSQL
    Left = 416
    Top = 184
  end
  inherited FDQryModuleFields: TFDQuery
    SQL.Strings = (
      
        'select * from SM_ModuleFields where  enterprise_guid =:enterpris' +
        'e_guid and  mod_code=:mod_code'
      'order by MDF_Index')
  end
  object FDQryDetail: TFDQuery [25]
    OnNewRecord = FDQryDetailNewRecord
    CachedUpdates = True
    Connection = DM.FDConn
    UpdateObject = FDUPSQLDetail
    Left = 328
    Top = 320
    ParamData = <
      item
      end>
  end
  object FDUPSQLDetail: TFDUpdateSQL [26]
    Connection = DM.FDConn
    Left = 416
    Top = 344
  end
  object FDQryinitialization: TFDQuery [27]
    Connection = DM.FDConn
    Left = 768
    Top = 384
  end
  object FDQryModuleMasterSet: TFDQuery
    Connection = DM.FDConn
    SQL.Strings = (
      
        'select distinct a.*,b.MDF_Displaylabel as MMS_Displaylabel from ' +
        'sm_modulemasterset a left join sm_modulefields b on a.enterprise' +
        '_guid=b.enterprise_guid and a.MOD_Code=b.MOD_Code and a.MMS_Fiel' +
        'dname=b.MDF_FieldName'
      
        'where  a.enterprise_guid =:enterprise_guid and  a.mod_code=:mod_' +
        'code'
      'order by mms_Index')
    Left = 768
    Top = 320
    ParamData = <
      item
        Name = 'ENTERPRISE_GUID'
        DataType = ftString
        ParamType = ptInput
      end
      item
        Name = 'MOD_CODE'
        DataType = ftString
        ParamType = ptInput
      end>
  end
end
